package com.zb.sannuo.maintenance.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.sannuo.common.domain.MedicalReport;
import com.zb.sannuo.common.domain.ReportList;
import com.zb.sannuo.common.domain.search.SystemSettingsSearch;
import com.zb.sannuo.common.domain.vo.SystemSettingsVo;
import com.zb.sannuo.maintenance.dao.SystemSettingsMapper;
import com.zb.sannuo.maintenance.service.SystemSettingsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SystemSettingsServiceImpl extends ServiceImpl<SystemSettingsMapper, SystemSettingsVo> implements SystemSettingsService {

    @Resource
    private SystemSettingsMapper systemSettingsMapper;

    @Override
    public Page selectList(int current, int number, SystemSettingsSearch search) {
        Page page = new Page(current,number);
        return page.setRecords(systemSettingsMapper.query(page,search));
    }

    @Override
    public int addSystemSettings(MedicalReport medicalReport) {
        return systemSettingsMapper.addSystemSettings(medicalReport);
    }

    @Override
    public int updateSystemSettings(MedicalReport medicalReport) {
        return systemSettingsMapper.updateSystemSettings(medicalReport);
    }


}
